<div id="nav">
    <br /><br />
    <hr class="hr_green" />
    <strong><a href="/{{pageData['args']['page_list']}}?pag=0&amp;pages={{pageData['args']['pages']}}&amp;searchkey={{pageData['args']['searchkey']}}">&nbsp;&nbsp;<<&nbsp;&nbsp;</a></strong>
    {% if pageData['args']["pag"] <= 1  %}
    <strong><a href="/{{pageData['args']['page_list']}}?pag=0&amp;pages={{pageData['args']['pages']}}&amp;searchkey={{pageData['args']['searchkey']}}">&nbsp;&nbsp;<&nbsp;&nbsp;</a></strong>
    {% else %}
    <strong><a href="/{{pageData['args']['page_list']}}?pag={{pageData['args']['pag']-1}}&amp;pages={{pageData['args']['pages']}}&amp;searchkey={{pageData['args']['searchkey']}}">&nbsp;&nbsp;<&nbsp;&nbsp;</a></strong>
 {% endif %}
    {% for pagina in range(1,pageData['args']["pages"]+1) %}
        {% if pagina|int == pageData['args']["pag"] %}
            <strong>[&nbsp;{{pagina}}&nbsp;]</strong>
        {% else %}
            {% if (pageData['args']["pag"] - pagina  <= 5) and (pagina - pageData['args']["pag"]  <= 5) %}
            <strong><a href="/{{pageData['args']['page_list']}}?pag={{pagina}}&amp;pages={{pageData['args']['pages']}}&amp;searchkey={{pageData['args']['searchkey']}}">{{pagina}}&nbsp;</a></strong>
            {% endif %}
        {% endif %}
    {% endfor %}
    {% if pageData['args']["pag"] < pageData['args']["pages"]  %}
        <strong><a href="/{{pageData['args']['page_list']}}?pag={{pageData['args']['pag']+1}}&amp;pages={{pageData['args']['pages']}}&amp;searchkey={{pageData['args']['searchkey']}}&amp;args={{pageData['args']}}">&nbsp;&nbsp;>&nbsp;&nbsp;</a></strong>
    {% elif pageData['args']["pag"] > pageData['args']["pages"] %}
        <strong><a href="/{{pageData['args']['page_list']}}?pag={{pageData['args']['pages']+1}}&amp;pages={{pageData['args']['pages']}}&amp;searchkey={{pageData['args']['searchkey']}}">&nbsp;&nbsp;>&nbsp;&nbsp;</a></strong>
    {% else %}
        <strong><a href="/{{pageData['args']['page_list']}}?pag={{pageData['args']['pag']}}&amp;pages={{pageData['args']['pages']}}&amp;searchkey={{pageData['args']['searchkey']}}">&nbsp;&nbsp;>&nbsp;&nbsp;</a></strong>
    {% endif %}
    <strong><a href="/{{pageData['args']['page_list']}}?pag={{pageData['args']['pages']}}&amp;pages={{pageData['args']['pages']}}&amp;searchkey={{pageData['args']['searchkey']}}">&nbsp;&nbsp;>>&nbsp;&nbsp;</a></strong>
    <hr class="hr_green" />
</div>        <br />
